/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ge.info.sip;

import ge.info.logging.Session;
import java.util.concurrent.ConcurrentHashMap;

/**
 *
 * @author koka
 */
public class SessionMap extends  ConcurrentHashMap<String, Session>
{

    public SessionMap()
    {
        super();
    }

    public synchronized Session AddOrReplace(Session event)
    {

            Session oldEvent = get(event.getMachineIP());
            this.put(event.getMachineIP(), event);
            return oldEvent;
    }
}
